security:
  oauth2:
    client:
      clientId: notification-service
      clientSecret: ${NOTIFICATION_SERVICE_PASSWORD}
      accessTokenUri: http://auth-service:5000/uaa/oauth/token
      grant-type: client_credentials
      scope: server

server:
  servlet:
    context-path: /notifications
  port: 8000

remind:
  cron: 0 0 0 * * *
  email:
    text: "Hey, {0}! We''ve missed you here on Guns of Grandeur. It''s time to check it again.\r\n\r\nCheers,\r\nGoG team"
    subject: Eugenarium reminder

backup:
  cron: 0 0 12 * * *
  email:
    text: "Howdy, {0}. Your account backup is ready.\r\n\r\nCheers,\r\nGoG team"
    subject: Eugenarium account backup
    attachment: backup.json

spring:
  data:
    postgresql:
      host: notification-postgresql
      username: user
      password: ${POSTGRESQL_PASSWORD}
      database: gunsofgrandeur
      port: 27017
    mail:
      host: smtp.gmail.com
      port: 465
      username: dev-user
      password: dev-password
      properties:
        mail:
          smtp:
            auth: true
            socketFactory:
              port: 465
              class: javax.net.ssl.SSLSocketFactory
              fallback: false
            ssl:
              enable: true